<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/6/25
 * Time: 14:10
 */

namespace app\common\model;


use think\Model;

class SiteTeam extends Model
{
    public function site(){
        return $this->hasOne('site', 'id', 'sid')->bind([
            'site_name'=>'name'
        ]);
    }
    public function street(){
        return $this->hasOne('street', 'id', 'street_id')->bind([
            'street_name'=>'name'
        ]);
    }

}